// test.js
const render = require('./index');

(async () => {
    try {
        const result = await render({
            title: '整装上阵',
            description: '获得全套铁质盔甲',
            icon: './assets/example_icon.png', // 或 base64字符串
            iconMode: 'path',
            savePath: './dist'
        });
        console.log('生成成功:', result);
    } catch (err) {
        console.error(err);
    }
})();